package com.xyzwps.orm.exposed.repository

import com.xyzwps.orm.repository.TablesRepository
import org.jetbrains.exposed.sql.Database
import org.jetbrains.exposed.sql.transactions.transaction

class ExposedTablesRepository(private val db: Database) :TablesRepository {

    override fun cleanAllTables() {
        transaction(db) {
            exec("delete from tag")
            exec("delete from user")
        }
    }
}